package com.ruoyi.slope.ai.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.slope.ai.mapper.SlopeAiServerResourceManagementMapper;
import com.ruoyi.slope.ai.domain.SlopeAiServerResourceManagement;
import com.ruoyi.slope.ai.service.ISlopeAiServerResourceManagementService;

/**
 * 服务器资源管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-05
 */
@Service
public class SlopeAiServerResourceManagementServiceImpl implements ISlopeAiServerResourceManagementService 
{
    @Autowired
    private SlopeAiServerResourceManagementMapper slopeAiServerResourceManagementMapper;

    /**
     * 查询服务器资源管理
     * 
     * @param serverId 服务器资源管理主键
     * @return 服务器资源管理
     */
    @Override
    public SlopeAiServerResourceManagement selectSlopeAiServerResourceManagementByServerId(String serverId)
    {
        return slopeAiServerResourceManagementMapper.selectSlopeAiServerResourceManagementByServerId(serverId);
    }

    /**
     * 查询服务器资源管理列表
     * 
     * @param slopeAiServerResourceManagement 服务器资源管理
     * @return 服务器资源管理
     */
    @Override
    public List<SlopeAiServerResourceManagement> selectSlopeAiServerResourceManagementList(SlopeAiServerResourceManagement slopeAiServerResourceManagement)
    {
        return slopeAiServerResourceManagementMapper.selectSlopeAiServerResourceManagementList(slopeAiServerResourceManagement);
    }

    /**
     * 新增服务器资源管理
     * 
     * @param slopeAiServerResourceManagement 服务器资源管理
     * @return 结果
     */
    @Override
    public int insertSlopeAiServerResourceManagement(SlopeAiServerResourceManagement slopeAiServerResourceManagement)
    {
        return slopeAiServerResourceManagementMapper.insertSlopeAiServerResourceManagement(slopeAiServerResourceManagement);
    }

    /**
     * 修改服务器资源管理
     * 
     * @param slopeAiServerResourceManagement 服务器资源管理
     * @return 结果
     */
    @Override
    public int updateSlopeAiServerResourceManagement(SlopeAiServerResourceManagement slopeAiServerResourceManagement)
    {
        return slopeAiServerResourceManagementMapper.updateSlopeAiServerResourceManagement(slopeAiServerResourceManagement);
    }

    /**
     * 批量删除服务器资源管理
     * 
     * @param serverIds 需要删除的服务器资源管理主键
     * @return 结果
     */
    @Override
    public int deleteSlopeAiServerResourceManagementByServerIds(String[] serverIds)
    {
        return slopeAiServerResourceManagementMapper.deleteSlopeAiServerResourceManagementByServerIds(serverIds);
    }

    /**
     * 删除服务器资源管理信息
     * 
     * @param serverId 服务器资源管理主键
     * @return 结果
     */
    @Override
    public int deleteSlopeAiServerResourceManagementByServerId(String serverId)
    {
        return slopeAiServerResourceManagementMapper.deleteSlopeAiServerResourceManagementByServerId(serverId);
    }
}
